package com.gewu.pm.ui.dialog;

import android.content.Context;
import android.view.Gravity;
import android.view.WindowManager;

import com.hjq.base.BaseDialog;
import com.gewu.pm.R;

/**
 *  可进行拷贝的副本
 */
public final class CopyDialog {

    public static final class Builder
            extends BaseDialog.Builder<Builder> {

        public Builder(Context context) {
            super(context);

            setContentView(R.layout.copy_dialog);
            setAnimStyle(BaseDialog.ANIM_BOTTOM);
            setGravity(Gravity.BOTTOM);
            // 显式设置宽度为全屏，因为 BaseDialog 不再自动从布局中获取宽高
            setWidth(WindowManager.LayoutParams.MATCH_PARENT);
        }
    }
}